<?php


namespace dsp\bridge\page;

use dsp\bridge\renderer\Renderer;

/**
 * The Abstraction.
 */
abstract class Page
{

    protected $renderer;

    public function __construct(Renderer $renderer)
    {
//        $this->renderer = $renderer;
        $this->changeRenderer($renderer);
    }

    public function changeRenderer(Renderer $renderer): void
    {
        $this->renderer = $renderer;
    }

    abstract public function view(): string;


}